package com.rent.collectrent.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author news
 * *@date 2025/9/28
 */
@Data
@TableName("write_off_summary")
public class WriteOffSummary implements Serializable {
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 批次号,; */
    @TableField("batch_no")
    private String batchNo;

    /** 核销总笔数,; */
    @TableField("total_count")
    private Integer totalCount;

    /** 核销总本金,; */
    @TableField("total_principal")
    private BigDecimal totalPrincipal;

    /** 核销总利息,; */
    @TableField("total_interest")
    private BigDecimal totalInterest;

    /** 核销总金额,; */
    @TableField("total_amount")
    private BigDecimal totalAmount;

    /** 耗时(毫秒),; */
    @TableField("duration_seconds")
    private Integer durationSeconds;

    /** 状态:PROCESSING,COMPLETED,FAILED,; */
    @TableField("status")
    private String status;

    @TableField("start_time")
    private Date startTime;

    @TableField("end_time")
    private Date endTime;

    @TableField("create_time")
    private Date createTime;
}
